import {
    createApp
} from 'vue'
import {
    nextTick
} from "@vue/runtime-core"
import App from './App.vue'
import router from './router'
import pinia from './stores'
import vant from 'vant';
import "normalize.css"
import "./assets/css/index.css"
import {
    createPinia
} from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

import Vconsole from 'vconsole'
// import 'vant/lib/index.css';
// 创建对象
const app = createApp(App)
nextTick(() => {
    // 代替 Vue.prototype.$xxx 绑定
    // app.prototype.$vconsole = new Vconsole() // 使用vconsole
})
app.use(router).use(pinia).use(vant).mount('#app')
app.use(createPinia().use(piniaPluginPersistedstate))